FROM openjdk:11
ADD miju-pay-admin.jar miju-pay-admin.jar
RUN bash -c 'touch /miju-pay-admin.jar'
RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo 'Asia/Shanghai' >/etc/timezone
EXPOSE 9002
ENV JAVA_OPTS="-Xms256m -Xmx256m"
ENTRYPOINT ["sh", "-c", "java $JAVA_OPTS -jar /miju-pay-admin.jar"]
